package com.tang.sys.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentVo {
    private Long id;


    @ApiModelProperty("文章id")
    private Long articleId;

    @ApiModelProperty("根评论id")
    private Long rootId;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("所回复的目标评论的userid")
    private Long toCommentUserId;
    @ApiModelProperty("所回复的目标评论的userName")
    private String toCommentUserName;

    @ApiModelProperty("回复目标评论id")
    private Long toCommentId;

    private Long createBy;

    private Date createTime;

    //评论人的名字
    private String username;
    private String avatar;
    private String userVip;
    private String userSvip;
    private List<CommentVo> children;

}
